package club.kingyin.easycache.core.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "easycache")
public class EasyCacheProperties {

    @Autowired
    private Engine engine;

    @Autowired
    private Inner inner;

    @Autowired
    private Redis redis;

    @Value("${easycache.context.type}")
    private String type;

    @Value("${easycache.context.func}")
    private String func;

    public static final String EMPTY_STRING = "$s^";

}
